package com.mop.core.es.bean;

import com.mop.core.es.api.annotation.ESField;
import com.mop.core.es.api.annotation.IndexName;
import com.mop.core.es.api.bean.BaseESBean;

/**
 * @author lemon
 * @ClassName TagEsBean
 * @desc 标签es实体类
 * @Date 2019/1/5 13:11
 * @Version 1.0
 **/
@IndexName(index = "mop_community_tag", type = "_doc")
public class TagEsBean extends BaseESBean {

    //存入es的字段使用下划线命名
    @ESField(column = "tag_key",type = "keyword")
    private String tagKey;

    @ESField(column = "tag_context",type = "text")
    private String tagContext;

    public String getTagKey() {
        return tagKey;
    }

    public void setTagKey(String tagKey) {
        this.tagKey = tagKey;
    }

    public String getTagContext() {
        return tagContext;
    }

    public void setTagContext(String tagContext) {
        this.tagContext = tagContext;
    }

    public TagEsBean(String id, String tagKey, String tagContext) {
        setDocId(id);
        this.tagKey = tagKey;
        this.tagContext = tagContext;
    }

    public TagEsBean() {
    }
}
